<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
        <?php if(!$info['expressNum']):?>
        <form class="layui-form">
        <div class="layui-row">
            <div class="layui-fluid">
              <div class="layui-card">
                <div class="layui-card-body">
                    <input type="hidden" name="order_no" value="<?=$info['id'];?>">
                  <div class="layui-form-item">
                    <label class="layui-form-label">物流单号</label>
                    <div class="layui-input-block">
                      <input type="text" name="kd_no" value="" required lay-verify="required" placeholder="请输入物流单号" autocomplete="off" class="layui-input">
                    </div>
                  </div>
                  <div class="layui-form-item">
                    <label class="layui-form-label">物流公司</label>
                    <div class="layui-input-block">
                        <select name='kd_id'>
                            <option value="">--请选择快递--</option>
                            <?php foreach($elist as $k => $v):?>
                                <option value="<?=$v['id'];?>" <?php if($k == 0):?>selected<?php endif;?>><?=$v['name'];?></option>
                            <?php endforeach?>
                        </select>
                    </div>
                  </div>
                  <div class="layui-form-item">
                    <label class="layui-form-label">快递备注</label>
                    <div class="layui-input-block">
                      <input type="text" name="kd_note" value="你好，你的商品已发货，请注意查收，谢谢" placeholder="请输入快递备注" autocomplete="off" class="layui-input">
                    </div>
                  </div>
                  <div class="layui-form-item">
                    <div class="layui-input-block">
                      <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
                      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
        </div>
        </form>
        <?php else:?>
            <div class="layui-row">
                <div class="layui-fluid">
                  <div class="layui-card">
                    <div class="layui-card-body">
                      <div class="layui-form-item">
                        <label class="layui-form-label">物流单号</label>
                        <div class="layui-input-block">
                            <?=$info['expressNum'];?>
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label">物流公司</label>
                        <div class="layui-input-block">
                            <?=$info['expressName'];?>
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label">快递备注</label>
                        <div class="layui-input-block">
                          <?=$info['text'];?>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
            </div>
        <?php endif;?>
    </div>
  </div>
</div>
<script>
  layui.use(['form'], function() {
    var $ = layui.$,
      form = layui.form;
    form.render();

    var ue = UE.getEditor('container');
  });
</script>
